Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better readability of failures in parallel fail fast pipelines #283

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

cyrille-leclerc
Copy link
Contributor

@cyrille-leclerc cyrille-leclerc commented Jan 2, 2022

Use spanStatus "unset" rather than "ko" when interruption cause is parallel fail fast.

Fix:

image

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue
node() {
    stage('ze-parallel-stage') {
        parallel failingBranch: {
            error 'the failure'
        }, parallelBranch1: {
             sleep 5
        } ,parallelBranch2: {
             sleep 5
        } ,parallelBranch3: {
             sleep 5
        }, failFast:true
    }
}

TODO

  • Unit test
  • Document added attributes

import java.util.Optional;
import java.util.Properties;
import java.util.Set;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: list all the imports

@cyrille-leclerc cyrille-leclerc merged commit 9b89aac into master Jan 4, 2022
@cyrille-leclerc cyrille-leclerc deleted the aborted-steps branch January 4, 2022 10:33
@cyrille-leclerc cyrille-leclerc changed the title Better readability of failures in parallel pipelines Better readability of failures in parallel fail fast pipelines Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants